package com.cs.framework.jdbc.common.bo;

import com.cs.framework.jdbc.common.dto.BaseDto;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 分页信息
 * 
 * @author hedongzhou
 * 
 */
public class PagingInfo extends BaseDto {

	private static final long serialVersionUID = -2184695167010755846L;

	public static final int DEFAULT_START_INDEX = 0;

	public static final int DEFAULT_PAGE_SIZE = Integer.MAX_VALUE;

	/**
	 * 开始索引
	 */
	@JsonInclude(Include.NON_NULL)
	protected Integer startIndex;

	/**
	 * 每页最大行数
	 */
	@JsonInclude(Include.NON_NULL)
	protected Integer pageSize;

	public PagingInfo() {
	}

	public PagingInfo(Integer startIndex, Integer pageSize) {
		this.startIndex = startIndex;
		this.pageSize = pageSize;
	}

	public Integer getStartIndex() {
		return startIndex;
	}

	public void setStartIndex(Integer startIndex) {
		this.startIndex = startIndex;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

}
